﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NES
{
    internal class Memory
    {
        public byte[] RAM;
        public byte[] VRAM;
        public byte[] SRAM;

        public Memory()
        {
            RAM = new byte[Commons.RAM_SIZE];
            VRAM = new byte[Commons.VRAM_SIZE];
            SRAM = new byte[Commons.SRAM_SIZE];
        }

        public byte Read(ushort Address)
        {
            return RAM[Address];
        }

        public void Write(ushort Address, byte Value)
        {
            RAM[Address] = Value;
        }
    }
}
